home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Morphos / GCC / os-includeppc / inline / lowlevel.h < prev    next >
C/C++ Source or Header  |  1997-04-14  |  3KB  |  85 lines

  1. /* Automatically generated header! Do not edit! */
  2.  
  3. #ifndef _INLINE_LOWLEVEL_H
  4. #define _INLINE_LOWLEVEL_H
  5.  
  6. #ifndef __INLINE_MACROS_H
  7. #include <inline/macros.h>
  8. #endif /* !__INLINE_MACROS_H */
  9.  
  10. #ifndef LOWLEVEL_BASE_NAME
  11. #define LOWLEVEL_BASE_NAME LowLevelBase
  12. #endif /* !LOWLEVEL_BASE_NAME */
  13.  
  14. #define AddKBInt(intRoutine, intData) \
  15.     LP2(0x3c, APTR, AddKBInt, APTR, intRoutine, a0, APTR, intData, a1, \
  16.     , LOWLEVEL_BASE_NAME)
  17.  
  18. #define AddTimerInt(intRoutine, intData) \
  19.     LP2(0x4e, APTR, AddTimerInt, APTR, intRoutine, a0, APTR, intData, a1, \
  20.     , LOWLEVEL_BASE_NAME)
  21.  
  22. #define AddVBlankInt(intRoutine, intData) \
  23.     LP2(0x6c, APTR, AddVBlankInt, APTR, intRoutine, a0, APTR, intData, a1, \
  24.     , LOWLEVEL_BASE_NAME)
  25.  
  26. #define ElapsedTime(context) \
  27.     LP1(0x66, ULONG, ElapsedTime, struct EClockVal *, context, a0, \
  28.     , LOWLEVEL_BASE_NAME)
  29.  
  30. #define GetKey() \
  31.     LP0(0x30, ULONG, GetKey, \
  32.     , LOWLEVEL_BASE_NAME)
  33.  
  34. #define GetLanguageSelection() \
  35.     LP0(0x24, UBYTE, GetLanguageSelection, \
  36.     , LOWLEVEL_BASE_NAME)
  37.  
  38. #define QueryKeys(queryArray, arraySize) \
  39.     LP2NR(0x36, QueryKeys, struct KeyQuery *, queryArray, a0, unsigned long, arraySize, d1, \
  40.     , LOWLEVEL_BASE_NAME)
  41.  
  42. #define ReadJoyPort(port) \
  43.     LP1(0x1e, ULONG, ReadJoyPort, unsigned long, port, d0, \
  44.     , LOWLEVEL_BASE_NAME)
  45.  
  46. #define RemKBInt(intHandle) \
  47.     LP1NR(0x42, RemKBInt, APTR, intHandle, a1, \
  48.     , LOWLEVEL_BASE_NAME)
  49.  
  50. #define RemTimerInt(intHandle) \
  51.     LP1NR(0x54, RemTimerInt, APTR, intHandle, a1, \
  52.     , LOWLEVEL_BASE_NAME)
  53.  
  54. #define RemVBlankInt(intHandle) \
  55.     LP1NR(0x72, RemVBlankInt, APTR, intHandle, a1, \
  56.     , LOWLEVEL_BASE_NAME)
  57.  
  58. #define SetJoyPortAttrsA(portNumber, tagList) \
  59.     LP2(0x84, BOOL, SetJoyPortAttrsA, unsigned long, portNumber, d0, struct TagItem *, tagList, a1, \
  60.     , LOWLEVEL_BASE_NAME)
  61.  
  62. #ifndef NO_INLINE_STDARG
  63. #define SetJoyPortAttrs(a0, tags...) \
  64.     ({ULONG _tags[] = { tags }; SetJoyPortAttrsA((a0), (struct TagItem *)_tags);})
  65. #endif /* !NO_INLINE_STDARG */
  66.  
  67. #define StartTimerInt(intHandle, timeInterval, continuous) \
  68.     LP3NR(0x60, StartTimerInt, APTR, intHandle, a1, unsigned long, timeInterval, d0, long, continuous, d1, \
  69.     , LOWLEVEL_BASE_NAME)
  70.  
  71. #define StopTimerInt(intHandle) \
  72.     LP1NR(0x5a, StopTimerInt, APTR, intHandle, a1, \
  73.     , LOWLEVEL_BASE_NAME)
  74.  
  75. #define SystemControlA(tagList) \
  76.     LP1(0x48, ULONG, SystemControlA, struct TagItem *, tagList, a1, \
  77.     , LOWLEVEL_BASE_NAME)
  78.  
  79. #ifndef NO_INLINE_STDARG
  80. #define SystemControl(tags...) \
  81.     ({ULONG _tags[] = { tags }; SystemControlA((struct TagItem *)_tags);})
  82. #endif /* !NO_INLINE_STDARG */
  83.  
  84. #endif /* !_INLINE_LOWLEVEL_H */
  85.